package test.alibaba;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * Created by wangg on 2019/9/23.
 */
@Data
@ConfigurationProperties(prefix = "user", ignoreUnknownFields = false)
@Component
@RefreshScope
public class UserProperties {

    private String id;
    private String name;
}
